<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8" /> 
        <!-- CSS FILES -->
		
        <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/admin/css/reset.css');  ?>" />
        <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/admin/css/style.css');  ?>" />
		<link type="text/css" rel="stylesheet" href="<?php echo base_url('assets/admin/js/jqueryui/smoothness/jquery-ui-1.9.2.custom.css');  ?>">
		<?php echo $this->template->stylesheet ?>
		<script type="text/javascript">
            var ADMIN_PATH = '<?php echo ADMIN_PATH; ?>';
           
        </script>
		
		<script type="text/javascript" src="<?php echo base_url('assets/admin/js/jquery.min.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/admin/js/jquery.tools.min.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/admin/js/jqueryui/jquery-ui-1.9.2.custom.min.js'); ?>"></script>
		<script type="text/javascript" src="<?php echo base_url('assets/admin/js/jquery-ui-timepicker-addon.js'); ?>"></script>
		
		<script type="text/javascript" src="<?php echo base_url('assets/admin/js/ckeditor/ckeditor.js'); ?>"></script>
		<script type="text/javascript">
		
		
            var ckeditor_config = { 
                toolbar : [
                                { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
                                { name: 'colors', items : [ 'TextColor','BGColor' ] },
                                { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','- ','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
                                { name: 'tools', items : [ 'ShowBlocks' ] },
                                { name: 'tools', items : [ 'Maximize' ] },
                                                '/',
                                { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Subscript','Superscript','Strike','-','RemoveFormat' ] },
                                { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
                                { name: 'editing', items : [ 'Find','Replace','-','Scayt' ] },
                                { name: 'insert', items : [ 'Image','Flash','MediaEmbed','Table','HorizontalRule','SpecialChar','Iframe' ] },
                                { name: 'links', items : [ 'Link','Unlink','Anchor' ] },
                                { name: 'document', items : [ 'Source' ] }
                            ],
                entities : true,
                extraPlugins : 'stylesheetparser',contentsCss : ['<?php echo base_url('assets/admin/js/ckeditor/contents.css'); ?>'],stylesSet : [],
                height : '300px',
                filebrowserBrowseUrl : '<?php echo base_url('assets/admin/js/kcfinder/browse.php?type=files'); ?>',
                filebrowserImageBrowseUrl : '<?php echo base_url('assets/admin/js/kcfinder/browse.php?type=images'); ?>',
                filebrowserFlashBrowseUrl : '<?php echo base_url('assets/admin/js/kcfinder/browse.php?type=flash'); ?>',
                filebrowserUploadUrl : '<?php echo base_url('assets/admin/js/kcfinder/upload.php?type=files'); ?>',
                filebrowserImageUploadUrl : '<?php echo base_url('assets/admin/js/kcfinder/upload.php?type=images'); ?>',
                filebrowserFlashUploadUrl : '<?php echo base_url('assets/admin/js/kcfinder/upload.php?type=flash'); ?>'
            };

           
			
       </script>
	   <?php echo $this->template->javascript; ?>
		
        <script type="text/javascript" src="<?php echo base_url('assets/admin/js/helpers.js'); ?>"></script>
        <script type="text/javascript" src="<?php echo base_url('assets/admin/js/superfish.js'); ?>"></script>
		
        
    </head>


    <body>
		<?php 
		header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
		header('Pragma: no-cache'); // HTTP 1.0.
		header('Expires: 0'); // Proxies.
		$member = $this->session->userdata('admin');
		
		$firstname=$member['firstname'];
		$lastname=$member['lastname'];
		$id=$member['userid'];
		$groupid=$member['groupid'];
		
		$configdata=configdata();
		
		?>
        <div id="container">

            <!-- Header -->
            <div id="header">
                <div class="div1">
                    <div class="div2">
						<span id="site_name"><?=$configdata['site_name']?></span>  | ADMINISTRATION
					</div>
                    <div class="div3">
						<img src="<?php echo base_url('assets/admin/images/lock.png'); ?>" alt="" style="position: relative; top: 3px;" />&nbsp;You are logged in as :<?php echo $firstname . ' ' . $lastname ; ?>
					</div>
                </div>
               
                    <div id="menu">
						<?php echo $this->template->widget("admin_menu_widget", array("ulclass"=>"active open","liclass"=>"active")); ?>

                        <ul class="right">
                            <li id="store"><a class="top" onClick="window.name = 'ee_admin'" target="ee_cms" href="<?php echo site_url(); ?>">Visit Site</a></li>
                            <li id="store"><a class="top" href="<?php echo site_url('admin/users/logout'); ?>">Logout</a></li>
                        </ul>
                        <script type="text/javascript">
                            $(document).ready(function() {
                                $('#menu > ul').superfish({
                                    hoverClass	 : 'sfHover',
                                    pathClass	 : 'overideThisToUse',
                                    delay		 : 0,
                                    animation	 : {height: 'show'},
                                    speed		 : 'normal',
                                    autoArrows   : false,
                                    dropShadows  : false, 
                                    disableHI	 : false, /* set to true to disable hoverIntent detection */
                                    onInit		 : function(){},
                                    onBeforeShow : function(){},
                                    onShow		 : function(){},
                                    onHide		 : function(){}
                                });
                                
                                $('#menu > ul').css('display', 'block');
                            });
                        </script>
                    </div>
                
            </div>
			<div id="content">
				<div class="breadcrumb"><?php echo isset($breadcrumb) ? $breadcrumb : ''; ?></div>
				<?php echo $this->session->flashdata('message'); ?>
				<?php echo validation_errors(); ?>
				  <?php echo $this->template->content; ?>

				
			</div>
			        <!-- ends the container -->
        </div>

        <!-- Footer -->
        <div id="footer">
            Copyright &copy; <?php echo date('Y'); ?>&nbsp; v<?php echo CMS_VERSION ?>
        </div>


        <div id="ajax_status">
            <table id="ajax_status_frame">
                <tr>
                    <td>
                        <div id="ajax_status_animation"><img src="<?php echo base_url('assets/admin/images/ajax-loader.gif'); ?>" /></div>
                        <div id="ajax_status_text"></div>
                    </td>
                </tr>
            </table>
        </div>
    </body>

</html>